/*
 * SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
 *
 * SPDX-License-Identifier: Apache-2.0
 */

#pragma once

#include "esp_err.h"
#include "esp_http_server.h"

#ifdef __cplusplus
extern "C"
{
#endif


typedef struct {
    uint8_t ssid[33];
    uint8_t password[65];
} wifi_sta_connect_config_t;


esp_err_t wifi_http_save_wifi_config(wifi_sta_connect_config_t *wifi_config);
esp_err_t wifi_http_get_wifi_config(wifi_sta_connect_config_t *wifi_config);

int wifi_http_handle_regist(httpd_handle_t server, void *ctx_info);

#ifdef __cplusplus
}
#endif
